//导入axios的实例化对象

import service from "./request";

//一个请求封装成一个函数

//1. 用户注册
export function user_register(params = {}) {
    return service.post('/user/register', params);
}
//2.用户登录
export function user_login(params = {}) {
    return service.post('/user/login', params);
}
//3.轮播图-列表(无参)
export function banner_list(params = {}) {
    return service.get('/banner/list', { params });
}
//4.店铺-列表(无参)
export function shop_list(params = {}) {
    return service.get('/shop/list', { params });
}
//5.店铺搜索(有参)
export function shop_search(params = {}) {
    return service.get('/shop/search', { params });
}
//6.店铺详情(有参)
export function shop_shopinfo(params = {}) {
    return service.get('/shop/shopinfo', { params });
}
//7.店铺收藏


//10.购物车(有参)
export function shopcart_list(params = {}) {
    return service.get('shopcart/list', { params })
}

//18爆爆团列表
export function tuan_list(params = {}) {
    return service.get('/tuan/list', { params });
}